package com.atguigu04.example.exer1;

/**
 * ClassName: PersonTest
 * Package: com.atguigu04.example.exer1
 * Description:
 *
 * @Author BuTang
 * @Create 2023/2/27 16:06
 * @Version 1.0
 */
public class PersonTest {
    public static void main(String[] args) {

        Person per1 = new Person();
        per1.name = "欣";
        per1.age =12;
        per1.gender = '女';

        per1.study();
        System.out.println(per1.showAge());
        per1.addAge(2);

        Person per2 = new Person();
        per2.name = "冲";
        per2.age =12;
        per2.gender = '男';
        per2.study();
        System.out.println(per2.showAge());
        per2.addAge(6);

    }
}
